# 数字 Number
n1 = 10  # 整数 Integer
n2 = 3.14  # 浮点数 Float
n3 = 1 + 5j  # 复数 Complex
print(n1, n2, n3)

del n1  # 删除变量 n1
# print(n1)  # NameError: name 'n1' is not defined

# 数字类型转换
n4 = int(3.14)  # 3
n5 = float(2)  # 2.0
n6 = complex(1, 2)  # (1+2j)
print(n4, n5, n6)

print("==" * 20)

# 常用的数学函数
import math
print(abs(-3.14))  # 3.14
print(round(3.14))  # 3
print(max(1, 2, 3))  # 3
print(min(1, 2, 3))  # 1
print(pow(2, 3))  # 8
print(sum([1, 2, 3]))  # 6
print(math.sqrt(9))  # 3.0